package classify

type ListRequest struct {
	Page  int     `form:"page" binding:"required" validate:"required"`
	Limit int     `form:"limit" binding:"required" validate:"required"`
	Type  *string `form:"type"`
	Title *string `form:"title"`
}

type ListResponse struct {
	List  []Classify `json:"list"`
	Total int64      `json:"total"`
	Page  int        `json:"page"`
	Limit int        `json:"limit"`
}

type Classify struct {
	Id        int    `json:"id"`
	Title     string `json:"title"`
	ParentId  int    `json:"parent_id"`
	Type      string `json:"type"`
	CreatedAt string `json:"created_at"`
}
